Optimal. Leaf size=28 \[ -\frac {\cot ^2(a+b x)}{2 b}-\frac {\log (\sin (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3473, 3475} \[ -\frac {\cot ^2(a+b x)}{2 b}-\frac {\log (\sin (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 3475
Rubi steps
\begin {align*} \int \cot ^3(a+b x) \, dx &=-\frac {\cot ^2(a+b x)}{2 b}-\int \cot (a+b x) \, dx\\ &=-\frac {\cot ^2(a+b x)}{2 b}-\frac {\log (\sin (a+b x))}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 34, normalized size = 1.21 \[ -\frac {\cot ^2(a+b x)+2 \log (\tan (a+b x))+2 \log (\cos (a+b x))}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 47, normalized size = 1.68 \[ -\frac {{\left (\cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (2 \, b x + 2 \, a\right ) + \frac {1}{2}\right ) - 2}{2 \, {\left (b \cos \left (2 \, b x + 2 \, a\right ) - b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.34, size = 118, normalized size = 4.21 \[ \frac {\frac {{\left (\frac {4 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + 1\right )} {\left (\cos \left (b x + a\right ) + 1\right )}}{\cos \left (b x + a\right ) - 1} + \frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 4 \, \log \left (\frac {{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right ) + 8 \, \log \left ({\left | -\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1 \right |}\right )}{8 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 31, normalized size = 1.11 \[ -\frac {\cot ^{2}\left (b x +a \right )}{2 b}+\frac {\ln \left (\cot ^{2}\left (b x +a \right )+1\right )}{2 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 23, normalized size = 0.82 \[ -\frac {\frac {1}{\sin \left (b x + a\right )^{2}} + \log \left (\sin \left (b x + a\right )^{2}\right )}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.03, size = 78, normalized size = 2.79 \[ x\,1{}\mathrm {i}-\frac {\ln \left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\mathrm {e}}^{b\,x\,2{}\mathrm {i}}-1\right )}{b}+\frac {2}{b\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}+b\,x\,2{}\mathrm {i}}-1\right )}+\frac {2}{b\,\left (1+{\mathrm {e}}^{a\,4{}\mathrm {i}+b\,x\,4{}\mathrm {i}}-2\,{\mathrm {e}}^{a\,2{}\mathrm {i}+b\,x\,2{}\mathrm {i}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.43, size = 58, normalized size = 2.07 \[ \begin {cases} \tilde {\infty } x & \text {for}\: \left (a = 0 \vee a = - b x\right ) \wedge \left (a = - b x \vee b = 0\right ) \\x \cot ^{3}{\relax (a )} & \text {for}\: b = 0 \\\frac {\log {\left (\tan ^{2}{\left (a + b x \right )} + 1 \right )}}{2 b} - \frac {\log {\left (\tan {\left (a + b x \right )} \right )}}{b} - \frac {1}{2 b \tan ^{2}{\left (a + b x \right )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________